package com.biz.primus.model.promotion.vo;

import com.biz.primus.model.promotion.enums.PromotionTargetLimitTypeEnum;
import com.google.common.collect.Maps;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Map;
import lombok.Getter;
import lombok.Setter;

/**
 * 折扣促销Vo
 *
 * @author david-liu
 */
@Setter
@Getter
public class DiscountPromotionRuleVo implements Serializable {
    private static final long serialVersionUID = 9075684474909141818L;

    /**
     * 是否是阶梯折扣
     */
    private Boolean isStairCut;

    /**
     * 按照商品金额/商品数量折扣
     */
    private PromotionTargetLimitTypeEnum limitType;

    /**
     * 折扣率
     */
    private Map<Integer, BigDecimal> discountRates = Maps.newLinkedHashMap();

}
